/**
 *    SPDX-License-Identifier: Apache-2.0
 */

import React from "react";
import Enzyme, { shallow, render, mount } from "enzyme";
import sinon from "sinon";
import { configure } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import localstorage from "mock-local-storage";

configure({ adapter: new Adapter() });

global.matchMedia = global.matchMedia || function() {
  return {
      matches : false,
      addListener : function() {},
      removeListener: function() {}
  }
}

global.React = React;
global.shallow = shallow;
global.render = render;
global.mount = mount;
global.sinon = sinon;
global.localstorage = localstorage;
